package com.dds.system.service.union.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dds.system.mapper.union.UnionShopVerifyFlowMapper;
import com.dds.system.domain.union.UnionShopVerifyFlow;
import com.dds.system.service.union.IUnionShopVerifyFlowService;

/**
 * 联盟商家审核流程Service业务层处理
 * 
 * @author gaolianjie
 * @date 2021-04-26
 */
@Service
public class UnionShopVerifyFlowServiceImpl implements IUnionShopVerifyFlowService 
{
    @Autowired
    private UnionShopVerifyFlowMapper unionShopVerifyFlowMapper;

    /**
     * 查询联盟商家审核流程
     * 
     * @param id 联盟商家审核流程ID
     * @return 联盟商家审核流程
     */
    @Override
    public UnionShopVerifyFlow selectUnionShopVerifyFlowById(Long id)
    {
        return unionShopVerifyFlowMapper.selectUnionShopVerifyFlowById(id);
    }

    /**
     * 查询联盟商家审核流程列表
     * 
     * @param shopId 联盟商家审核流程
     * @return 联盟商家审核流程
     */
    @Override
    public List<Map<String, Object>> selectUnionShopVerifyFlowList(String shopId)
    {
        return unionShopVerifyFlowMapper.selectUnionShopVerifyFlowList(shopId);
    }

    /**
     * 新增联盟商家审核流程
     * 
     * @param unionShopVerifyFlow 联盟商家审核流程
     * @return 结果
     */
    @Override
    public int insertUnionShopVerifyFlow(UnionShopVerifyFlow unionShopVerifyFlow)
    {
        return unionShopVerifyFlowMapper.insertUnionShopVerifyFlow(unionShopVerifyFlow);
    }

    /**
     * 修改联盟商家审核流程
     * 
     * @param unionShopVerifyFlow 联盟商家审核流程
     * @return 结果
     */
    @Override
    public int updateUnionShopVerifyFlow(UnionShopVerifyFlow unionShopVerifyFlow)
    {
        return unionShopVerifyFlowMapper.updateUnionShopVerifyFlow(unionShopVerifyFlow);
    }

    /**
     * 批量删除联盟商家审核流程
     * 
     * @param ids 需要删除的联盟商家审核流程ID
     * @return 结果
     */
    @Override
    public int deleteUnionShopVerifyFlowByIds(Long[] ids)
    {
        return unionShopVerifyFlowMapper.deleteUnionShopVerifyFlowByIds(ids);
    }

    /**
     * 删除联盟商家审核流程信息
     * 
     * @param id 联盟商家审核流程ID
     * @return 结果
     */
    @Override
    public int deleteUnionShopVerifyFlowById(Long id)
    {
        return unionShopVerifyFlowMapper.deleteUnionShopVerifyFlowById(id);
    }
}
